package com.ruoyi.system.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

public class QuaStatisticsDto {

    @Data
    @ApiModel("QuaStatisticsDto - QueryPatient")
    public static class QueryPatient{
        @NotNull
        @ApiModelProperty("统计方式 0:周 1:月 2:季 3:年")
        private Integer timeType = 0;
        @DateTimeFormat(pattern = "yyyy-MM-dd")
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date startTime;
        @DateTimeFormat(pattern = "yyyy-MM-dd")
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date endTime;

    }

    @Data
    @ApiModel("QuaStatisticsDto - Query")
    public static class Query{
        @DateTimeFormat(pattern = "yyyy-MM-dd")
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        @ApiModelProperty("开始时间")
        private Date startTime;
        @DateTimeFormat(pattern = "yyyy-MM-dd")
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        @ApiModelProperty("结束时间")
        private Date endTime;

    }

    @Data
    @ApiModel("QuaStatisticsDto - QueryZhibiao")
    public static class QueryZhibiao{
        @NotNull
        @ApiModelProperty("统计方式 0:周 1:月 2:季 3:年")
        private Integer timeType = 0;
        @DateTimeFormat(pattern = "yyyy-MM-dd")
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date startTime;
        @DateTimeFormat(pattern = "yyyy-MM-dd")
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date endTime;
        @ApiModelProperty("0：平均数  1：中位数")
        private Integer type;
    }

    @Data
    @ApiModel("")
    public static class getHospitalAndNumByCityCode {
        private String cityCode;
    }
}
